<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initail-scale=1.0">
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/doctor_register.css">
    <title>注册界面</title>
</head>

<body>
    <div class="my_login">
        <h3>BmbHome医生注册</h3>
        <hr>
        <div class="form-horizontal login_form">
            <p>您好，1582524053@qq.com，完成信息，点击完成就可以完成注册。</p>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">姓名</label>
                <div class="col-sm-10">
                    <input type="email" class="form-control" placeholder="请输入你的真实姓名" name="name" id="name">
                </div>
            </div>
            <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" id="pass" placeholder="请输入你的账号密码" name="pass">
                </div>
            </div>
            <div class="alert alert-warning alert-dismissible" role="alert">
                <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <b>Better check yourself, you're not looking too good.</b>
            </div>
            <div class="form-group">
                <div class="col-sm-10 col-sm-offset-1">
                    <button class="btn btn-info btn-lg" id="register_button">立即注册</button>
                </div>
            </div>
        </div>
    </div>
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script type="text/javascript">
    $(function() {
        $("#register_button").click(function() {
            var name = $("#name").val();
            var pass = $("#pass").val();
            if (name == "") {
                $(".alert").show();
                $(".alert b").text("姓名必须填写");
                return;
            }
            if (pass == "") {
                $(".alert").show();
                $(".alert b").text("名字不能为空");
                return;
            }
        });
    })
    </script>
</body>

</html>
